package cn.com.nes.site.service.crm.customer;

import cn.com.nes.site.entity.em.crm.customer.CustomerNatureEnum;

public class CustomerUtil {

    /**
     * 查询客户性质
     */
    public static CustomerNatureEnum getCustomerNatureUtil(String customerNature){
        CustomerNatureEnum saveStrategyType;
        switch (customerNature) {
            case "01":
                saveStrategyType = CustomerNatureEnum._personal;//个人客户
                break;
            case "02":
                saveStrategyType = CustomerNatureEnum._dealer;//经销商
                break;
            case "03":
                saveStrategyType = CustomerNatureEnum._enterprise;//设备厂家
                break;
            case "04":
                saveStrategyType = CustomerNatureEnum._government;//政府客户
                break;
            case "05":
                saveStrategyType = CustomerNatureEnum._enterprise;//公共机构
                break;
            case "06":
                saveStrategyType = CustomerNatureEnum._enterprise;//企业客户
                break;
            case "07":
                saveStrategyType = CustomerNatureEnum.END_USRE_GOVERNMENT;//政府终端客户
                break;
            default:
                saveStrategyType = CustomerNatureEnum._personal;
                break;
        }
        return saveStrategyType;
    }
}
